package com.wei.czz.framework.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wei.czz.framework.admin.entity.UserRiskFlowEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-04-15 21:40:39
 * className: UserRiskFlowDao 用户风险记录数据库交互接口
 * version: 1.0
 * description:
 */
public interface UserRiskFlowDao extends BaseMapper<UserRiskFlowEntity> {

    /**
     * 查询所有被风控过的用户主键集合
     * @return 用户主键集合
     */
    Set<Long> getUserIdSet();

    /**
     * 查询用户风控状态数值
     * @param id 用户风控记录主键
     * @return 用户风控状态值
     */
    Integer getStatus(@Param("id") Long id);

}
